/**
    ******************************************************************************
    * @file    queue.h
    * @author  debian
    * @version V1.0.0
    * @date    2019-12-01
    * @brief   队列
    ******************************************************************************
    * @attention
    *
    *
    ******************************************************************************
    */ 

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __QUEUE_H
#define __QUEUE_H

#ifdef __cplusplus
    extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/


/** @addtogroup DataStruct_Driver
    * @{
    */
typedef int Elemtype;


typedef struct Queue
{
	int			front;				//对头指针
	int 		rear;				//队尾指针
	int 		size;				//队列的大小
	Elemtype	*data;				//队列的元素
}_Queue;



/** @addtogroup queue
    * @{
    */

/* Exported types ------------------------------------------------------------*/
/** @defgroup 
    * @{
    */ 



/**
    * @}
    */


/* Exported constants --------------------------------------------------------*/

/* Exported macro ------------------------------------------------------------*/

/* Exported functions --------------------------------------------------------*/ 
/* Initialization and de-initialization functions *******************************/
/** @addtogroup queue_Exported_Functions
    * @{
    */

/** @addtogroup queue_Exported_Functions_Group1
    * @{
    */
    int queue_creat(struct Queue *q, int size);
    int queue_destroy(struct Queue *q);

/**
    * @}
    */

/* operation functions *******************************************************/
/** @addtogroup queue_Exported_Functions_Group2
    * @{
    */



/**
    * @}
    */

/**
    * @}
    */ 

/**
    * @}
    */

/**
    * @}
    */


#ifdef __cplusplus
}
#endif

#endif /* __QUEUE_H */

/******************* (C) 2019 HOME 深圳龙华 *****END OF FILE****/

